package com.ruoyi.system.mapper.repair;

import java.util.List;

import com.ruoyi.system.domain.db.basic.BasicVehicles;
import com.ruoyi.system.domain.db.repair.VehicleRepair;
import com.ruoyi.system.domain.dto.RepairDriverDto;

/**
 * 报修申请Mapper接口
 * 
 * @author ruoyi
 * @date 2023-07-31
 */
public interface VehicleRepairMapper 
{
    /**
     * 查询报修申请
     * 
     * @param repairId 报修申请主键
     * @return 报修申请
     */
    public RepairDriverDto selectVehicleRepairByRepairId(Long repairId);

    /**
     * 查询报修申请列表
     * 
     * @param vehicleRepair 报修申请
     * @return 报修申请集合
     */
    public List<RepairDriverDto> selectVehicleRepairList(VehicleRepair vehicleRepair);

    /**
     * 新增报修申请
     * 
     * @param vehicleRepair 报修申请
     * @return 结果
     */
    public int insertVehicleRepair(VehicleRepair vehicleRepair);

    /**
     * 修改报修申请
     * 
     * @param vehicleRepair 报修申请
     * @return 结果
     */
    public int updateVehicleRepair(VehicleRepair vehicleRepair);

    /**
     * 删除报修申请
     * 
     * @param repairId 报修申请主键
     * @return 结果
     */
    public int deleteVehicleRepairByRepairId(Long repairId);

    /**
     * 批量删除报修申请
     * 
     * @param repairIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVehicleRepairByRepairIds(Long[] repairIds);

    /**
     * 获取属于自己的车辆
     */
    BasicVehicles selectCarByUserId(Long userId);
}
